package com.team7.happycommunity.propertymanagement.pojo;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class ParkingInfo implements Serializable {
    private Integer id;

    private Date beginTime;

    private Date endTime;

    private String parkingNumber;

    private String parkingInfos;

    private Integer costPerDay;

    private Integer communityId;

    private Integer ownerId;
    // 0 小区 1 业主委托
    private Integer type;

    private Integer status;

    private String areaName;

    private String typeStr;

    public void setType(Integer type){
        this.type = type;
        if (type == 0){
            typeStr = "小区车位";
        }else{
            typeStr = "业主车位";
        }
    }
}